package com.fire.control.system.dto;

import java.io.Serializable;

import com.fire.control.system.entity.Company;

/**
 * @author liuxincheng
 * @ClassName: CompanyDTO
 * @Description: TODO(企业返回DTO)
 * @date 2017年5月11日 上午9:59:16
 */
public class CompanyDTO implements Serializable{

	
	private static final long serialVersionUID = 1L;
	
	private String companyId;
	
	private String companyName;
	
	/**   
	 * @Fields companyCode : 该code可用于公司与公司之间的层级关系  
	 */ 
	private String parentId;
	/**   
	 * @Fields contact : 联系人  
	 */ 
	private String contact;
	/**   
	 * @Fields telNumber : 联系电话 
	 */ 
	private String telNumber;
	/**   
	 * @Fields address : 地址  
	 */ 
	private String address;
	/**   
	 * @Fields email : email
	 */ 
	private String email;
	
	private Company company;
	
	public String getCompanyId() {
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getTelNumber() {
		return telNumber;
	}
	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public void setCompany(Company company){
		this.address = company.getAddress();
		this.parentId = company.getParentId();
		this.companyName = company.getCompanyName();
		this.contact = company.getContact();
		this.telNumber = company.getTelNumber();
	}
	public Company getCompany() {
		return company;
	}
}
